import * as types from './types'
export function minus(n){
  return function (dispatch,getState) {
    console.log(getState())
    setTimeout(() => {
      return dispatch({type:types.MINUS,qqq:n})
    }, 2000);
  }
  
}
export function add(n){
  //逻辑
  return {type:types.ADD,qqq:n}
}
export function changeColor(col){
  return {type:types.CHNAGE_COLOR,col:col}
}